<?php 

class Zend_View_Helper_ShowKeys
{
	function showKeys($ar) 
	{
		$return = "<table width='100%' border='1' cellspacing='0' cellpadding='5'>";

    	foreach ($ar as $k => $v ) {
			
			$return .= "<tr valign='top'>";
			$return .=  "<td width='10%'>";			
			$return .=  $k;
			$return .=  "</td>";
		   	
			$return .=  "<td width='90%'>";
		   
        	if (is_array($ar[$k])) {
        		$this->showKeys($ar[$k]);
        	} else {
				if ($v == null) {
					if (is_numeric($v)) $return .= 0;
					else $return .=  "<b>NULL</b>";
				}
        		else $return .=  $v;
        	}
           	
        	$return .=  "</td></tr>";
     	}
     
     	$return .=  "</table>";
     	
     	return $return;
	}
}